//
//  FadeOutView.h
//  iddressbook
//
//  Created by 谌启亮 on 10-11-26.
//  Copyright 2010 Digisys Information. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KitConfig.h"
#import "UIColor+HexRGB.h"

//void showFadeOutViewAuto(NSString *text, BOOL success, NSTimeInterval d);
void showFadeOutView(NSString *text, BOOL success, NSTimeInterval d);
void showFadeOutLongView(NSString *text, BOOL success, NSTimeInterval d);
void showFadeOutHorizentalView(NSString *text, BOOL success, NSTimeInterval d);
void showFadeOutView_diamond(NSString *text0, NSString *text1, UIImage *image0, UIImage *image1, NSTimeInterval interval);
void showFadeOutText(NSString *text, CGFloat offsetY,  NSTimeInterval interval);
void showFadeoutImageWithText(NSString *text, UIImage *image, NSTimeInterval interval);

@interface FadeOutView : UIWindow {
    UIImageView *imageView;
    UILabel *label;
    NSTimeInterval delay;
}

- (id)init;
- (id)initWithText:(NSString *)text isSuccess:(BOOL)success delay:(NSTimeInterval)d;
- (id)initLongViewWithText:(NSString*)text isSuccess:(BOOL)success delay:(NSTimeInterval)d;
- (id)initWithHorizentalText:(NSString *)text isSuccess:(BOOL)success delay:(NSTimeInterval)d;
- (id)initWithText:(NSString *)text offsetY:(CGFloat)offsetY delay:(NSTimeInterval)interval;
- (id)initWithText:(NSString *)text image:(UIImage*)image delay:(NSTimeInterval)d;
- (id)initWithText:(NSString *)text0 text1:(NSString *)text1 image:(UIImage *)image0 diamondImage:(UIImage *)image1 delay:(NSTimeInterval)d;
- (void)show;
- (void)showHorizental;


@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) UILabel *label;

@end
